package com.zc.basic.domain.pojo.gis;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class GeoPoint implements Serializable {

    private static final long serialVersionUID = 1L;

    private BigDecimal longitude;

    private BigDecimal latitude;

    public GeoPoint(BigDecimal longitude, BigDecimal latitude) {
        this.longitude = longitude;
        this.latitude = latitude;
    }

    public GeoPoint() {
    }

    @Override
    public String toString() {
        return "POINT(" + longitude + " " + latitude + " )";
    }
}
